
package com.example.testleftclose;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class SecondActivity extends BaseActivity {
	
	@Override
	protected void test() {
		startActivity(new Intent(this, ThreeActivity.class));
		overridePendingTransition(R.anim.right_in, R.anim.right_out);
	}
	
	@Override
	public void onBackPressed() {
		super.onBackPressed();
		overridePendingTransition(R.anim.left_in, R.anim.right_out);
	}
	
	@Override
	public int getlayoutId() {
		return R.layout.second;
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		findViewById(R.id.test2).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
			}
		});
	}
	
	@Override
	public void onConfigurationChanged(Configuration newConfig) {
//		super.onConfigurationChanged(newConfig);
	}

}
